local zcdiy_gongli = fk.CreateSkill {
    name = "zcdiy_gongli",
}

Fk:loadTranslationTable {
    ["zcdiy_gongli"] = "功利",
    [":zcdiy_gongli"] = "出牌阶段限一次，你可以对一名体力值不大于你的角色造成一点伤害。",

    ["#zcdiy_gongli"] = "功利：对一名体力值不大于你的角色造成一点伤害",

    ["$zcdiy_gongli1"] = "粮食充沛，不愁国运。",
    ["$zcdiy_gongli2"] = "养威持重，不营小利",
}

zcdiy_gongli:addEffect("active", {
    anim_type = "offensive",
    prompt = "#zcdiy_gongli",
    card_num = 0,
    target_num = 1,
    can_use = function(self, player)
        return player:usedSkillTimes(zcdiy_gongli.name, Player.HistoryPhase) == 0
    end,
    card_filter = Util.FalseFunc,
    target_filter = function(self, player, to_select, selected)
        return #selected == 0 and to_select.hp <= player.hp
    end,
    on_use = function(self, room, effect)
        room:damage {
            from = effect.from,
            to = effect.tos[1],
            damage = 1,
            damageType = fk.NormalDamage,
            skillName = zcdiy_gongli.name,
        }
    end,
})

return zcdiy_gongli
